package com.ustc.py.learn.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Builder;
import lombok.Data;

/**
 * 封装返回前端页面的数据项
 */
@Data
@Builder
public class KnowledgeVo {
    /**
     * 知识点的主键
     */
    @TableField(value = "id")
    private  Integer   knowledgeId;

    /**
     * 知识类型
     * @see
     */
    @TableField(value = "type")
    private Integer    knowledgeType;

    /**
     * 知识的章节序号
     */
    private Integer    knowledgeChapterId;

    private  String chapterName;

    /**
     * 知识的标题
     */
    private String    knowledgeTitle;


    /**
     * 超长文本
     */
    private String text;

}


/*
   {
       "id": 0,
       "type": 0,             // KnowledgeTypeEnum.ALGORITHM.getTypeId()
       "chapterId": 0,        //
       "title": "Python简介",
       "text": "Python 是一个高层次的结合了解释性、编译性、互动性和面向对象的脚本语言。"
   }

   {
       "id": 6,
       "type": 1, ///
       "chapterId": 0,
       "title": "哈希算法",
       "text": null
   }

*/


